Let your Linux box express itself!
# Author: Serge Le Tyrant
# License: CC-BY
# version: 1.0.1

NEW with v.1.0.1:
Following the previous Manjaro update (Gnome 44), my TalkingPC script was no longer working. It relies on the gspeech package. For it to work again, the gspeech package needs to be completely reinstalled (purged). Personally, I was more radical to avoid other problems, as root I deleted ~/.cache/yay/).

However, the weather forecasting part no longer works, as it relies on the discontinued weather utility (https://github.com/genuinetools/weather).
It worked at the beginning of 2023 while I finished fine-tuning it, then the server stopped working as 1.0 approached (really bad luck :).

Too bad, because I thought it was really great.

If I find the time, the inclination and the right weather utility, I'll rewrite it and adapt it to this other weather utility.

---------------------------------------------------------------------------------------------------------------------


This set of bash scripts (that can be used independently) will allow you to give voice to your Linux box (Supported languages: "en-GB", "en-US", "de-DE", "it-IT", "fr-FR" (default)):

- TalkingClock : voice clock + TalkingHaveANiceDay.

- TalkingHaveANiceDay : greeting according to the time

- TalkingFortune: tells you a joke at each launch (uses fortune packages).

- (Warning: no longer works) TalkingWeather : voice weather (your city and country is to be specified at the beginning of the script) in long version (very detailed) or short version. Also tells you if the meto has changed since his last call.

- TalkingIntro : a launch of all these scripts at the startup of your PC (welcome message to customize in the script, then weather, a joke, the time).


Note: the translation tool (crow) uses libretranslate, lingva, Yandex, Bing or Google translation services


INSTALLATION:

In each script (at the beginning of the script) initialize :

- for each of the modules: your language in the variable $DefaultLang
- for the TalkingWeather module: your location (variable "Area")
- for the TalkingHaveANiceDay module: the appropriate greeting in your language according to the time of day (morning, noon, afternoon and evening)

Copy all these scripts to the same place and install the packages below (all in Arch/Manjaro repositories):

For the voices (minimum requirement) (supported voices: de-DE, en-GB, en-US, es-ES, fr-FR, it-IT)
- gspeech: https://github.com/mothsART/gSpeech
- pico-tts: https://github.com/Iiridayn/pico-tts
- pico2wave-shell 

For voice message translation (by default they are written in English and translated on the fly before being pronounced in your language)
crow-translate: https://github.com/crow-translate/crow-translate

To activate the talking clock:
Command to launch (to be adapted to the location): /mnt/DDprc/Download/Goupil/TalkingClockHours
- kalarm: https://apps.kde.org/fr/kalarm/
- or alarm-clock-applet: https://alarm-clock-applet.github.io

Configuration of Kalarm:
In the notification bar:
- Right click on the Kalarm icon then "Configure Kalarm..."
   >"General" tab, "Start when connected"
   >"Default alarms" tab, activate the "Cancel if too late" option (to avoid that the voice alarm is triggered several times when your window manager starts).
- Left click on the Kalarm icon then "New", "New alarm by a command", then (...) + check "Cancel if too late"

For the weather:
- weather-go: https://github.com/genuinetools/weather

For jokes (TalkingFortune):
- fortune-mod: https://www.shlomifish.org/open-source/projects/fortune-mod/
- fortune-mod-fr: in repo (no more site)
- fortune-tontons-flingueurs-fr: optionally
